//
//  XZ_EasyReact.m
//  Project_Demo
//
//  Created by Leon on 2018/7/23.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "XZ_EasyReact.h"
#import "XZ_EasyReact1.h"

@interface XZ_EasyReact ()<UITextFieldDelegate>

@end

@implementation XZ_EasyReact

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    EZRNode *nodeA = [EZRNode value:@15];
//    EZRNode *nodeB = [EZRNode new];
//    EZRNode<NSNumber *> *nodeC = [EZRNode value:@33];
    
    UITextField *inputField  =[[UITextField alloc]initWithFrame:CGRectMake(0, 0, 200, 30)];
    inputField.placeholder = @"请输入值";
    inputField.center = self.view.center;
    inputField.delegate = self;
    [self.view addSubview:inputField];
    

    [inputField.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        NSLog(@"%@",x);
    }];
    
    RACSignal *viewDidAppearSignal = [self rac_signalForSelector:@selector(viewDidAppear:)];
    
    [viewDidAppearSignal subscribeNext:^(id  _Nullable x) {
        NSLog(@"%s",__func__);
    }];
    
}

-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self setNeedsStatusBarAppearanceUpdate];
    NSLog(@"%s",__func__);
}



//-(void)textFieldDidBeginEditing:(UITextField *)textField{
//    _node.value = textField.text;
//}

@end
